package com.name.givename.service;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.name.givename.entity.UserInfoEntity;
import com.name.givename.entity.UserInformationEntity;
import com.name.givename.param.BindPhoneParams;
import com.name.givename.param.PhoneVerifyCodeParam;


public interface UserInfoService {

    UserInfoEntity getUserInfo(Integer userId);

    /**
     * 通过IopenId获取用户信息
     * @param openId
     * @return
     */
    UserInformationEntity getUserInformation(String openId);

    Integer bindPhone(BindPhoneParams bindPhoneParams);
    
    SendSmsResponse sendVerifyCode(PhoneVerifyCodeParam phoneVerifyCodeParam);
}
